<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
	pageEncoding="ISO-8859-1"%>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form"%>

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Insert title here</title>
</head>
<body>
	<form:form method="GET" action="./salva" modelAttribute="carro">
		<table>
			<tr>
				<td> placa 
				<div >
					<form:errors path="placa" />
					<br />
				</div>
				</td>
				<td><input type="text" name="placa" path="placa"></td> 
			</tr>
			
			<tr>
				<td>ano</td>
				<td><input type="text" name="ano"></td>
			</tr>
			 
			<tr>
				<td>marca</td> 
				<td><input type="text" name="marca"></td>
			</tr>
			
			<tr>
				<td>quilometragem</td>
				<td><input type="text" name="quilometragem"></td>
			</tr>
			
			<tr>
				<td>patrimonio</td>
				<td><input type="text" name="patrimonio"></td>
			</tr>
		
			<tr><td><button type="submit">Enviar</button></td></tr>
		</table>
		
	</form:form>

	<form action="./lista">
		<input type="submit" value="Lista Todos" />
	</form>

	<br />

</body>
</html>